package com.china.bike.service;

import com.china.bike.dto.BikeInfoVo;
import com.china.bike.dto.BikeListParam;
import com.china.bike.dto.PageBean;
import com.china.bike.entity.BikeInfo;
import com.china.bike.entity.BikeUseRecord;
import com.china.bike.entity.User;

import java.util.List;

public interface BikeInfoService {

    int saveBikeInfo(Integer bikeCount);

    int updateBikeStatus(BikeInfo bikeInfo);

    List<BikeInfoVo> listBikes(BikeListParam bikeListParam);

    Integer listBikeCount(BikeListParam bikeListParam);

    void driveBike(Long bikeId, User user);

    void lockBike(Long bikeId, User user);

    PageBean<BikeUseRecord> getBikeByUserId(Long userId, Integer start, Integer limit);

    int deleteBike(String bikeNum);
}
